import React from "react"
import './style.less'
import Recharge from '../Recharge'
import ItemList from '../ItemList'

export default class Cleanup extends React.Component{
  backHandle(){
    window.history.back();
  }
  render(){
    const lifedata = this.props.lifedata
    return(
      <div className='clean-up'>
        {/*头部背景*/}
        <div className='clean-bg'>
          <i className='iconfont icon-zuo' onClick={this.backHandle.bind(this)}></i>
        </div>
        {/*充值*/}
        <Recharge/>
        <div className='clean-content'>
          {
            lifedata.map((element,index) => {
              return <ItemList key={ index } data={ element }/>
            })
          }
        </div>
      </div>
    )
  }
}
